<html>
<body>
<p id='acc'></p>
<script>
var arr = ['1111', '2222', '3333'];
var index = randomInteger(0, 2);
document.getElementById('acc').innerHTML = arr[index];

function randomInteger(min, max) {
  return Math.floor(Math.random() * (max - min + 1)) + min;
}
</script>
</body>
</html>